﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrganizationSumirisePrint.aspx.cs" Inherits="GH.Web.Welfare.OrganizationSumirisePrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>工会组织机构统计表打印</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #tabCard th
        {
            background-color: #B2DBF7;
            height: 24px;
        }
        #tabCard td
        {
            background-color: #FFFFFF;
            height: 24px;
            text-align: left;
        }
    </style>
     <link rel="stylesheet" type="text/css" href="/css/jquery-ui-1.7.2.custom.css" />
    <link rel="stylesheet" type="text/css" href="../JqueryUI/themes/ui-lightness/jquery-ui-1.7.2.custom.css" />
    <script type="text/javascript" src="../javascript/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../javascript/jquery-ui-1.7.2.custom.js"></script>
    <script type="text/javascript" src="../javascript/messageBox.js"></script>
    <script type="text/javascript" src="../javascript/formValidator.js"></script>
    <script type="text/javascript" src="../javascript/formValidatorRegex.js"></script>
    <script type="text/javascript" src="../javascript/Public.js"></script>

    <script language="javascript">
         function printpreview() {// 打印页面预览
             dPrint.style.display = 'none';
             //tabCard.border = "1";
             wb.ExecWB(8,1);
             wb.ExecWB(7,1);
             //window.print();
             dPrint.style.display = 'block';
             //tabCard.border = "0";
        }
        
        function SetPrintSettings() {//控制"纵打、 横打、页面的边距"。

            // -- advanced features
            factory.printing.SetMarginMeasure(2)  // measure margins in inches
            factory.SetPageRange(false, 1, 3)    // need pages from 1 to 3

            factory.printing.printer = "Panasonic KX-P1121"
            factory.printing.copies = 2
            factory.printing.collate = true
            factory.printing.paperSize = "A4"
            factory.printing.paperSource = "Manual feed"

            // -- basic features
            factory.printing.header = false
            factory.printing.footer = false
            factory.printing.portrait = false
            factory.printing.leftMargin = 1.0
            factory.printing.topMargin = 1.0
            factory.printing.rightMargin = 1.0
            factory.printing.bottomMargin = 1.0
        }
        
    </script>
    
    
    
    <script type='text/javascript'>
        $(document).ready(function() {

             SetReportIndex();   
            function SetReportIndex() {
                var intRow =0;
               $("#tabShow>tbody>tr").each(function(i, item) {
                    //跳过顶上的两行标题头
                    if (i > 0) {
                        //序号重新排序
                        $(this).find("td:eq(0)").text(intRow);
                        intRow++;
                    }
                })

                
            }
        });
       </script>

</head>
<body>
    <center>
        <table width="width: 600px" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <div id='dPrint' style="text-align: right">
                             <img id="btnPrint" alt="打印" src="../Images/button/btnPrint.gif" onclick="printpreview();"  />
                        <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="wb" name="wb" height="0"
                            width="0">
                        </object>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <h3>
                        工会组织机构统计表</h3>
                    <asp:Repeater ID="rptList" runat="server" >
                        <HeaderTemplate>
                            <table  id="tabShow" style="width: 900px; background-color: Silver" cellpadding="0px" cellspacing="0px" border="1">
                                <tr>
                                    <tr>
                                    <th style="width: 30px; height: 22px; background-color: #B2DBF7;" align="center">
                                        序号
                                    </th>
                                    <th style="width: 200px; height: 22px; background-color: #B2DBF7;" align="center">
                                        单位
                                    </th>
                                    <th style="width: 100px; height: 22px; background-color: #B2DBF7;" align="center">
                                        届数
                                    </th>
                                    <th style="width: 80px; height: 22px; background-color: #B2DBF7;" align="center">
                                        主席
                                    </th>
                                    <th style="width: 80px; height: 22px; background-color: #B2DBF7;" align="center">
                                        副主席
                                    </th>
                                    <th style="width: 80px; height: 22px; background-color: #B2DBF7;" align="center">
                                        委员姓名
                                    </th>
                                    <th style="width: 150px; height: 22px; background-color: #B2DBF7;" align="center">
                                        委员分工
                                    </th>
                                    <th style="height: 22px; background-color: #B2DBF7;" align="center">
                                        备注
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td style="background-color: #FFFFFF" align="center">
                                    
                                </td>
                                 <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "单位名称")%>&nbsp;
                                </td>
                                 <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "届数")%>&nbsp;
                                </td>
                                 <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "主席")%>&nbsp;
                                </td>
                                 <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "副主席")%>&nbsp;
                                </td>
                                 <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "委员姓名")%>&nbsp;
                                </td>
                                   <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "委员分工")%>&nbsp;
                                </td>
                                  <td style="background-color: #FFFFFF" align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "备注")%>&nbsp;
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </center>
</body>
</html>
